<?php
/**
 * @fileoverview    找回密码
 * @author          zhanglei11
 * @date            Mon Jan 09 18:32:12 CST 2012
 * @copyright       sina meila
 */

include('../../__global.php');

class setpwd extends ml_controller
{
    public function init()
    {
        $this->set_access(self::ACCESS_PUBLIC);
    }
    public function initParam()
    {
        $this->__visitor['code'] = $this->input('code');
    }
    public function checkParam()
    {
        //    判断是否过期限
    }
    public function main()
    {
        ml_tool_actionlog::add_other_action($this->__visitor['uid'] , ML_SINAACTCODE_VIEW_EDITPWD);
        
        $arr = ml_tool_securecode::passport_decrypt($this->__visitor['code']);
        $data['code'] = $this->__visitor['code'];
        $data['email'] = $arr[0];
        $time = $arr[1];
        
        if (time() - $time > 86400 *2 ) {  
            echo 'time out!~ 少页面！';    exit;
        }
        
        $oAccount = new ml_model_dbUserAccount();
        
        
        $this->page_output('user::setpwd',$data);
//        $session = $this->getSession();        
       
       
        die('');

    }
}

new setpwd();